Component({
  properties: {},
  data: {
    sysInfo: wx.getSystemInfoSync(),
    index: '0',
  },
  attached(){
    // console.log(this.data.sysInfo)
  },
  methods: {
    research:function(e){
      const {page}=e.currentTarget.dataset;
      console.log(page);
      if(page){
        wx.navigateTo({
          url: page,
        })
      }
    },
    select: function(e){
      const {index} = e.currentTarget.dataset;
      this.setData({
        index,
      })
      console.log("点击了",this.data.index);
      this.triggerEvent("back",{index}) //回传参数
    }
  }
})